import { Application } from "egg";

export default (app: Application) => {
  const { controller, router } = app;
  // 添加路由api前缀
  router.prefix("/api");
  // RESUL API设计
  router.resources("test", "/test", controller.test);
};
